#include <windows.h>
#include <d3d10.h>
#include <d3dx10.h>
#include <string>
#include <math.h>

using namespace std;

class sceneCamera {
	
private:
	D3DXVECTOR3					cameraPos;
	D3DXVECTOR3					cameraTargetVect;
	D3DXVECTOR3					cameraUp;



	//camera/control vars
	float angle, angleY, deltaAngle, deltaAngleY, ratio;
	float deltaMove, deltaStrafe;
	float X, Y;

	bool left, middle, right;
	bool rotation;

	void orientView(float ang);
	void orientViewY (float ang);
	void move(float i);
	void strafe(float i);

public:

	sceneCamera();		//constructor

	void init();

	void camStartRot(float amount);
	void camStopRot();

	void camStartMov(float amount);
	void camStopMov();

	void camStartStrafe(float amount);
	void camStopStrafe();

	void mouseStart(float x, float y);
	void mouseStop();
	void mouseMove(float x, float y);

	void render();

	D3DXVECTOR3 getPos();
	D3DXVECTOR3 getTargetVect();
	D3DXVECTOR3 getUp();

};